/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.crazypizza.gui;

import javax.swing.JOptionPane;

/**
 *
 * @author Lucas
 */
public class FrmBebidas extends javax.swing.JFrame {

    /**
     * Creates new form FrmBebidas
     */
    public FrmBebidas() {
        this.setExtendedState(MAXIMIZED_BOTH);
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        lblBebidas = new javax.swing.JLabel();
        pnlBebidas = new javax.swing.JPanel();
        lblJohnnieWalker = new javax.swing.JLabel();
        btnJohnnie = new javax.swing.JRadioButton();
        btnBlack = new javax.swing.JRadioButton();
        btnSkol = new javax.swing.JRadioButton();
        btnBrahma = new javax.swing.JRadioButton();
        btnHeineker = new javax.swing.JRadioButton();
        btnCaipirosca = new javax.swing.JRadioButton();
        btnSminorff = new javax.swing.JRadioButton();
        btnMartini = new javax.swing.JRadioButton();
        btnEspanhola = new javax.swing.JRadioButton();
        btnAgua = new javax.swing.JRadioButton();
        btnAguaGas = new javax.swing.JRadioButton();
        btnCocaCola = new javax.swing.JRadioButton();
        btnFanta = new javax.swing.JRadioButton();
        btnSalvar = new javax.swing.JToggleButton();
        btnCancelar = new javax.swing.JToggleButton();
        ImagemBebidas = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("PEDIDO DE BEBIDAS");
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        lblBebidas.setFont(new java.awt.Font("Comic Sans MS", 1, 36)); // NOI18N
        lblBebidas.setForeground(new java.awt.Color(255, 0, 0));
        lblBebidas.setText("BEBIDAS");
        getContentPane().add(lblBebidas, new org.netbeans.lib.awtextra.AbsoluteConstraints(670, 40, -1, -1));

        pnlBebidas.setBackground(new java.awt.Color(255, 255, 204));
        pnlBebidas.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        pnlBebidas.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());
        pnlBebidas.add(lblJohnnieWalker, new org.netbeans.lib.awtextra.AbsoluteConstraints(12, 29, -1, -1));

        btnJohnnie.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnJohnnie.setText("Johnnie Walker");
        pnlBebidas.add(btnJohnnie, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 40, -1, -1));

        btnBlack.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnBlack.setText("Black& White");
        pnlBebidas.add(btnBlack, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 10, -1, 30));

        btnSkol.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnSkol.setText("Skol");
        pnlBebidas.add(btnSkol, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 70, -1, -1));

        btnBrahma.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnBrahma.setText("Brahma");
        pnlBebidas.add(btnBrahma, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 100, -1, -1));

        btnHeineker.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnHeineker.setText("Heineken");
        pnlBebidas.add(btnHeineker, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 130, -1, -1));

        btnCaipirosca.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnCaipirosca.setText("Caipiroska");
        pnlBebidas.add(btnCaipirosca, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 160, -1, -1));

        btnSminorff.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnSminorff.setText("Smirnoff");
        pnlBebidas.add(btnSminorff, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 190, -1, -1));

        btnMartini.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnMartini.setText("Martini");
        pnlBebidas.add(btnMartini, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 220, -1, -1));

        btnEspanhola.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnEspanhola.setText("Espanhola");
        pnlBebidas.add(btnEspanhola, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 250, -1, -1));

        btnAgua.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnAgua.setText("Água");
        pnlBebidas.add(btnAgua, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 280, -1, -1));

        btnAguaGas.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnAguaGas.setText("Água com gás");
        pnlBebidas.add(btnAguaGas, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 310, -1, -1));

        btnCocaCola.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnCocaCola.setText("Coca-Cola");
        pnlBebidas.add(btnCocaCola, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 340, -1, -1));

        btnFanta.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnFanta.setText("Fanta");
        pnlBebidas.add(btnFanta, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 370, -1, -1));

        getContentPane().add(pnlBebidas, new org.netbeans.lib.awtextra.AbsoluteConstraints(630, 100, 240, 420));

        btnSalvar.setBackground(new java.awt.Color(255, 255, 255));
        btnSalvar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/edu/ifal/crazypizza/imagens/Botoesaceitar.png"))); // NOI18N
        btnSalvar.setText("SALVAR");
        btnSalvar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnSalvarActionPerformed(evt);
            }
        });
        getContentPane().add(btnSalvar, new org.netbeans.lib.awtextra.AbsoluteConstraints(600, 570, 140, -1));

        btnCancelar.setBackground(new java.awt.Color(255, 255, 255));
        btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/edu/ifal/crazypizza/imagens/Botoes_5123_cancel_48.png"))); // NOI18N
        btnCancelar.setText("CANCELAR");
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });
        getContentPane().add(btnCancelar, new org.netbeans.lib.awtextra.AbsoluteConstraints(750, 570, 150, -1));

        ImagemBebidas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/br/edu/ifal/crazypizza/imagens/dm.jpg"))); // NOI18N
        getContentPane().add(ImagemBebidas, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 1380, 1170));

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed
    this.dispose();        // TODO add your handling code here:
    }//GEN-LAST:event_btnCancelarActionPerformed

    private void btnSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSalvarActionPerformed
    
        JOptionPane.showMessageDialog(null, "Sua Pedido foi criado !");
            this.dispose();     // TODO add your handling code here:
    }//GEN-LAST:event_btnSalvarActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(FrmBebidas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(FrmBebidas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(FrmBebidas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(FrmBebidas.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new FrmBebidas().setVisible(true);
            }
        });
}
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel ImagemBebidas;
    private javax.swing.JRadioButton btnAgua;
    private javax.swing.JRadioButton btnAguaGas;
    private javax.swing.JRadioButton btnBlack;
    private javax.swing.JRadioButton btnBrahma;
    private javax.swing.JRadioButton btnCaipirosca;
    private javax.swing.JToggleButton btnCancelar;
    private javax.swing.JRadioButton btnCocaCola;
    private javax.swing.JRadioButton btnEspanhola;
    private javax.swing.JRadioButton btnFanta;
    private javax.swing.JRadioButton btnHeineker;
    private javax.swing.JRadioButton btnJohnnie;
    private javax.swing.JRadioButton btnMartini;
    private javax.swing.JToggleButton btnSalvar;
    private javax.swing.JRadioButton btnSkol;
    private javax.swing.JRadioButton btnSminorff;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JLabel lblBebidas;
    private javax.swing.JLabel lblJohnnieWalker;
    private javax.swing.JPanel pnlBebidas;
    // End of variables declaration//GEN-END:variables
}
